import Vue from 'vue'
<<<<<<< HEAD
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    }
  ]
})
=======
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
	{
		path: '/',
		name: 'home',
		component: () => import('../views/home/Home')
	},
	{
		path: '/home',
		name: 'home',
		component: () => import('../views/home/Home')
	},
	{
		path: '/user',
		name: 'user',
		component: () => import('../views/user/User')
	},
	{
		path: '/mer',
		name: 'mer',
		component: () => import('../views/merchant/Mer'),
		children: [
			{ path: '/merchant', name: 'merchant', component: () => import('../views/merchant/component/Merchant') },
			{ path: '/merDetail', name: "merDetail", component: () => import('../views/merchant/component/MerDetail') },
			{ path: '/ranking', name: 'ranking', component: () => import('../views/merchant/component/Ranking') }

		]
	},
	{
		path: '/amount',
		name: 'amount',
		component: () => import('../views/amount/Amount')
	},
	{
		path: '/message',
		name: 'message',
		component: () => import('../views/message/Message')
	},
	{
		path: '/service',
		name: 'service',
		component: () => import('../views/service/Service'),
		children: [
			{ path: '/serviceMag', name: 'serviceMag', component: () => import('../views/service/component/ServiceMag') },
			{ path: '/serviceAdd', name: 'serviceAdd', component: () => import('../views/service/component/ServiceAdd') },
			{ path: '/serviceSort', name: 'serviceSort', component: () => import('../views/service/component/ServiceSort') }
		]
	},
	{
		path: '/rescue',
		name: 'rescue',
		component: () => import('../views/rescue/Rescue')
	},
	{
		path: '/order',
		name: 'order',
		component: () => import('../views/order/Order'),
		children:[
			{path:'/orderWash',name:'orderWash',component:()=>import('../views/order/component/OrderWash')},
			{path:'/orderMend',name:'orderMend',component:()=>import('../views/order/component/OrderMend')},
			{path:'/orderRate',name:'orderRate',component:()=>import('../views/order/component/OrderRate')},
			{path:'/orderKeep',name:'orderKeep',component:()=>import('../views/order/component/OrderKeep')},
			{path:'/orderDetail',name:'orderDetail',component:()=>import('../views/order/component/OrderDetail')}
		]
	},
]

const router = new VueRouter({
	routes
})

export default router
>>>>>>> 02a1a7f (2023-03-08)
